package com.qiuling.iot.mapper;

import com.qiuling.iot.entity.SysUser;
import com.qiuling.iot.vo.req.UserPageReqVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface SysUserMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    /**
     * ----------------------------以下为自定义接口---------------------------------
     */
    SysUser getUserInfoByName(String username);

    List<SysUser> selectAll(UserPageReqVO vo);

    int deletedUsers(@Param("sysUser") SysUser sysUser, @Param("list") List<String> list);

    /**
     * @description 查询部门下的所有用户
     * </br>       
     * @param deptIds
     * @return java.util.List<com.qiuling.iot.entity.SysUser>
     * @author zhangqiang
     * @date 15:34 2020/2/20
     */
    List<SysUser> selectUserInfoByDeptIds(List<String> deptIds);

}